export interface DispenseHistory {
  orderId: number
  orderNo: string
  deliveryStatus: string
  patientId: number
  patientName: string
  patientGender: string
  dispenseTime: string
  totalDeliveryQty: any
  visitNo: string
  doctorId: number
  doctorName: string
  deptId: number
  deptName: string
  diagnosis: string
  diagnosisTime: string
  patientPhone: string
  idCard: string
  ageYear: number
  ageMonth: number
  solarBirthday: string
  lunarBirthday: string
  weight: number
  systolicBp: number
  diastolicBp: number
  dispenseUserId: number
  dispenseUserName: string
  deliveryUserId: number
  deliveryUserName: string
  deliveryTime: string
  refuseReason: string
  rxList: RxList[]
}

export interface RxList {
  rxType: string
  rxId: number
  rxName: string
  storageId: number
  dispenseStatus: any
  tcmInfo?: TcmInfo
  groupList?: GroupList[]
  detailList?: DetailList3[]
}

export interface TcmInfo {
  frequencyCode: string
  dailyDosage: string
  cycle: number
  cycleUnit: string
  usageCode: string
  singleDosage: string
  remark: string
  totalDoses: number
  subtotal: number
  detailList: DetailList[]
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}

export interface DetailList {
  drugId: number
  drugName: string
  price: number
  dosage: number
  dosageUnit: string
  decotionMethod: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
  drugDosage: any
  drugDosageUnit: any
  minPackQty: any
  minPackUnit: any
  packUnit: any
  isSplit: any
}

export interface GroupList {
  groupName: string
  usageCode: string
  frequencyCode: string
  cycle: number
  cycleUnit: string
  ivDripRate: string
  subtotal: number
  detailList: DetailList2[]
}

export interface DetailList2 {
  drugId: number
  drugName: string
  price: number
  skinTest: string
  drugCategory: string
  dosage: number
  dosageUnit: string
  remark: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
  drugDosage: number
  drugDosageUnit: any
  minPackQty: number
  minPackUnit: string
  packUnit: string
  isSplit: any
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}

export interface DetailList3 {
  drugId: number
  drugName: string
  price: number
  usageCode: string
  frequencyCode: string
  dosage: number
  dosageUnit: string
  cycle: number
  cycleUnit: string
  remark: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
  drugDosage: number
  drugDosageUnit: any
  minPackQty: number
  minPackUnit: string
  packUnit: string
  isSplit: any
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}



